# Makefile
# bushaofeng. 2011.8.27
# ver=1.0.0

INCLDIR		= 	./

CC              =       gcc
#CC             =       gcc -mcpu=v9 -m64
FPIC            =       -fPIC
WARN_LEVL       =       -Wall
FDEBUG          =       -g

EXTRA_OPT       =       $(FDEBUG)
EXTRA_OPT       +=      $(WARN_LEVL)
EXTRA_OPT       +=      $(FPIC)
#EXTRA_OPT       +=      $(DEFS)

LIB		= -lm

TARGET	= libbs.a

all:
	${CC} ${EXTRA_OPT} -I${INCLDIR} -c *.c
	ar rv ${TARGET} *.o
	cp libbs.a ../lib64

clean:
	rm -f core $(TARGET) *.o
